import Vue from "vue";
import VueRouter from "vue-router";
import Home from "@/views/Home.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home,
  },
  {
    path: "/trends",
    name: "trends",
    component: () => import("@/views/modules/trends.vue"),
  },
  {
    path: "/maincity",
    name: "MainCity",
    component: () => import("@/views/MapModules/MainCity.vue"),
  },
  {
    path: "/subsidiaryright",
    name: "SubsidiaryRight",
    component: () => import("@/views/MapModules/SubsidiaryRight.vue"),
  },
  {
    path: "/canvas",
    name: "canvas",
    component: () => import("@/views/modules/canvas.vue"),
  },
  {
    path: "/mouse",
    name: "mouse",
    component: () => import("@/views/modules/mouse.vue"),
  },
  {
    path: "/backpack",
    name: "backpack",
    component: () => import("@/views/BackPack/index.vue"),
  },
  {
    path: "/sign",
    name: "sign",
    component: () => import("@/views/SiGn/index.vue"),
  },
];

const router = new VueRouter({
  mode: "history",
  routes,
});

export default router;
